﻿@{
	Layout = "";
}
@model Nop.Plugin.Widgets.ExternalScripts.Models.ConfigurationModel
@using Nop.Web.Framework;

@using (Html.BeginForm())
{
    <table class="adminContent">
        <tr>
            <td class="adminTitle" colspan="2">
                You should read <a href="https://nopexternalscripts.codeplex.com/documentation">documentation</a> before using this module
                <br />
                Click on <a href="@Url.Action("ConfigureDetail", "ExternalScripts", new { scriptSystemName = "New" })">New script</a> to start, or click on one of your existing scripts to edit.
                <br />
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.NopLabelFor(model => model.ZoneId):
            </td>
            <td class="adminData">
                @Html.DropDownListFor(model => model.ZoneId, Model.AvailableZones)
                @Html.ValidationMessageFor(model => model.ZoneId)
            </td>
        </tr>

      
    </table>

    foreach (var scriptSystemName in Model.ScriptSystemNames)
    {
            <a href="@Url.Action("ConfigureDetail", "ExternalScripts", new { scriptSystemName = scriptSystemName })">@scriptSystemName</a>

    }
     

    



    <table class="adminContent">
        <tr>
            <td colspan="2" width="100%">
                <input type="submit" name="save" class="t-button" value="@T("Admin.Common.Save")" />
            </td>
        </tr>
    </table>



}
